#!/bin/sh

make ARCH=x86 MACH=pc -C ../../ 
cp ../../brain ./kernel
strip --strip-unneeded kernel
ld -r -o kernel.o -b binary kernel 
ld -o Brain.bin -T boot.ld --start-group head.o early.o \
	cpuid.o kernel.o --end-group -lgcc
strip --strip-unneeded Brain.bin 

